<!DOCTYPE html>
<html>

<head lang="en">
    <title>骡窝日报</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="js/bootstrap/css/bootstrap.min.css">
    <script src="js/jquery/jquery.min.js"></script>
    <script src="js/bootstrap/js/bootstrap.bundle.min.js"></script>

    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/reset.css">
    <link rel="stylesheet" href="/css/newsContent.css">
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <script src="/js/common.js"></script>


</head>

<body>


<div class="search-head">
    <div class="row nav-search">
        <div class="col-2">
            <a href="index.html">
                <span><i class="fa fa-chevron-left fa-2x"></i></span>
            </a>
        </div>
        <div class="col-10">
            <div class="input-group-sm search">
                <input class="form-control searchBtn" placeholder="搜索资讯">
            </div>
        </div>
    </div>
</div>

<div class="container news">

    <div class="news" id="dailyContent">
        <span class="type">日报分类</span>
        <div class="row" render-loop="list">
            <div class="row typeRow">
                &nbsp;&nbsp;&nbsp;<h6><span class="type" render-fun="getName" render-key="list.name"></span></h6>
                <div render-loop="list.dailies">
                    <a href="/dailyContent.html?id=" render-fun="setHref" render-key="list.dailies.id">
                        <img class="rounded" width="40%" height="110px"
                             render-src="list.dailies.coverUrl">
                    </a>
                    <div class="caption">
                        <p>
                            <span> </span>
                            <i class="fa fa-heart-o"></i>
                        </p>
                        <a href="/dailyContent.html?id=" render-fun="setHref" render-key="list.dailies.id">
                            <p render-html="list.dailies.title">暑假去哪里旅游凉快？</p>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $.get("/daily/type",function (data) {
            $("#dailyContent").renderValues({list:data},{
                "setHref":function (item,value) {
                    $(item).attr("href", $(item).attr("href") + value)
                },
                "getName":function (item,value) {
                    $(item).html(value)
                }
            });
        })
    })
</script>

</body>
</html>